<div class="modal-dialog">
    <div class="modal-content">
     	<div class="modal-header" ng-show="userRole1">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"  ng-click="close()">&times;</span></button>
			<h4 class="modal-title" id="myModalLabel">用户角色</h4>
		</div>
		<div class="modal-header" ng-show="allotRole">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"  ng-click="close()">&times;</span></button>
			<h4 class="modal-title" id="myModalLabel">分配角色</h4>
		</div>
      	<div class="modal-body" ng-controller="infoUserRoleCtl">
        	<div class="">
					<div class="pull-left" style="padding-bottom: 14px; padding-left: 14px;">
						<h6 class="pull-left">分配用户：</h6>
						<span class="pull-right" style="padding-top: 8px;">{{userRole.userName}}</span>
					</div>
				</div>
				<div ng-show="userRole1">
					<table class="table table-hover">
						<tr>
							<th>角色ID标识</th>
							<th>角色名称</th>
							<th>角色编号</th>
							<th>角色描述</th>
							<th>操作</th>
						</tr>
						<tr ng-repeat="role in roleList" style="text-align: center;">
							<td>{{role.id}}</td>
							<td>{{role.name}}</td>
							<td>{{role.code}}</td>
							<td>{{role.desc}}</td>
							<td>
								<a ng-show="!role.exit" class="btn btn-success  active" role="button" style="font-size: 12px;" ng-click="setAllotRole(role.id)">分配</a>
								<a ng-show="role.exit" class="btn btn-danger active" role="button" style="font-size: 12px;" ng-click="removeUserRole(role.userRoleId)">取消分配</a>
							</td>
						</tr>
						<tr>
							<td colspan="5" style="border-bottom: 1px solid #E0E0E0;">
								<my_pages></my_pages>
							</td>
						</tr>

					</table>
				</div>
				<div ng-show="allotRole" style="margin-top: 48px;">
					<form class="form-horizontal" ng-submit="addUserRole()" role="userRoleForm" name="userRoleForm">
						<input type="hidden" ng-model="userRole.id">
						<div class="form-group">
							<label for="inputUserNaneId" class="col-sm-3 control-label">用户名ID</label>
							<div class="col-sm-4">
								<p class="form-control-static">{{userRole.userId}}</p>
							</div>
						</div>
						<div class="form-group">
							<label for="inputRoleNameId" class="col-sm-3 control-label">角色ID</label>
							<div class="col-sm-4">
								<p class="form-control-static">{{userRole.roleId}}</p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">权限描述</label>
							<div class="col-sm-6">
								<textarea class="form-control" rows="3" ng-model="userRole.desc" required></textarea>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label"></label>
							<div class="col-sm-6">
								<button type="submit" class="btn btn-primary">保存</button>
							</div>
						</div>

					</form>
				</div>
      	</div>
      <div class="modal-footer">
        <button type="button" class="btn btn-danger" data-dismiss="modal" ng-click="close()">关闭</button>
      </div>
    </div>
  </div>